﻿using Newtonsoft.Json;

namespace Douyu.Api.Entity
{

    public class UserEntity
    {
        [JsonProperty(PropertyName = "uid")]
        public string Uid { get; set; }

        [JsonProperty(PropertyName = "username")]
        public string Username { get; set; }

        [JsonProperty(PropertyName = "nickname")]
        public string Nickname { get; set; }

        [JsonProperty(PropertyName = "email")]
        public string Email { get; set; }

        [JsonProperty(PropertyName = "qq")]
        public string Qq { get; set; }

        [JsonProperty(PropertyName = "mobile_phone")]
        public string MobilePhone { get; set; }

        [JsonProperty(PropertyName = "phone_status")]
        public string PhoneStatus { get; set; }

        [JsonProperty(PropertyName = "email_status")]
        public string EmailStatus { get; set; }

        [JsonProperty(PropertyName = "lastlogin")]
        public string Lastlogin { get; set; }

        /// <summary>
        /// 是否是直播
        /// </summary>
        [JsonProperty(PropertyName = "has_room")]
        public string HasRoom { get; set; }

        [JsonProperty(PropertyName = "groupid")]
        public string Groupid { get; set; }

        [JsonProperty(PropertyName = "is_own_room")]
        public string IsOwnRoom { get; set; }

        /// <summary>
        /// 鱼丸数
        /// </summary>
        [JsonProperty(PropertyName = "gold1")]
        public string Gold1 { get; set; }

        /// <summary>
        /// 经验值
        /// </summary>
        [JsonProperty(PropertyName = "score")]
        public string Score { get; set; }

        [JsonProperty(PropertyName = "follow")]
        public string Follow { get; set; }

        [JsonProperty(PropertyName = "ios_gold_switch")]
        public int IosGoldSwitch { get; set; }

        /// <summary>
        /// 鱼翅
        /// </summary>
        [JsonProperty(PropertyName = "gold")]
        public string Gold { get; set; }

        /// <summary>
        /// token
        /// </summary>
        [JsonProperty(PropertyName = "token")]
        public string Token { get; set; }

        /// <summary>
        /// 过期时间，十天
        /// </summary>
        [JsonProperty(PropertyName = "token_exp")]
        public int TokenExp { get; set; }

        [JsonProperty(PropertyName = "avatar")]
        public AvatarEntity Avatar { get; set; }

        [JsonProperty(PropertyName = "level")]
        public LevelEntity Level { get; set; }
    }
}
